<!--pagination-->
<?php
	$settings = array();
	$settings['page'] = (int) ( $theme->page - 1);
	//if ($settings['page'] < 1) {
	//	echo '<div id="prev-page"></div>';		
	//} else {
		echo '<a id="prev-page" href="' . URL::get(null, $settings, false) . '" title="Previous">Previous</a>';
	//}

    $settings = array();
	$settings['page'] = (int) ( $theme->page + 1);
	$items_per_page = isset($theme->posts->get_param_cache['limit']) ?
		$theme->posts->get_param_cache['limit'] :
		Options::get('pagination');
	$total = Utils::archive_pages( $theme->posts->count_all(), $items_per_page );
	//if ( $settings['page'] > $total ) {
	//	echo '<div id="next-page"></div>';
	//} else {
		echo '<a id="next-page" href="' . URL::get(null, $settings, false) . '" title="Next">Next</a>';
	///}
?>
<!--/pagination-->